﻿using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.ComponentModel;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;

namespace SistemaAdministracion.Models.BaseClass
{
    [Table("role", Schema = "cuentas")]
    public class Role
    {
        public Role()
        {
            this.UsuarioRol = new HashSet<UsuarioRol>();
        }

        [Column("idrole")]
        public int IdRole { get; set; }
        [Column("nombrerol")]
        public string NombreRol { get; set; }

        public virtual ICollection<UsuarioRol> UsuarioRol { get; set; }
    }
}
